<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required;" class="form-control selectpage" data-source="hj212/pollutioncode/index"
             data-field="name" data-primary-key="code"name="row[code]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">站点:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-site" data-rule="required" class="form-control selectpage" data-source="hj212/pollutionsite/index"
                   data-field="site_name" data-primary-key="id"name="row[site_id]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Alarm_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alarm_min" data-rule="required" class="form-control" name="row[alarm_min]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Alarm_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alarm_max" data-rule="required" class="form-control" name="row[alarm_max]" type="number" value="0">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Avg_min')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-avg_min" data-rule="required" class="form-control" name="row[avg_min]" type="number" value="0">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Avg_max')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-avg_max" data-rule="required" class="form-control" name="row[avg_max]" type="number" value="0">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
